﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000D3 RID: 211
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AvatarPresetHp : IMessage<AvatarPresetHp>, IMessage, IEquatable<AvatarPresetHp>, IDeepCloneable<AvatarPresetHp>, IBufferMessage
	{
		// Token: 0x170002D8 RID: 728
		// (get) Token: 0x060009BA RID: 2490 RVA: 0x0001D1E8 File Offset: 0x0001B3E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AvatarPresetHp> Parser
		{
			get
			{
				return AvatarPresetHp._parser;
			}
		}

		// Token: 0x170002D9 RID: 729
		// (get) Token: 0x060009BB RID: 2491 RVA: 0x0001D1EF File Offset: 0x0001B3EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AvatarPresetHpReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170002DA RID: 730
		// (get) Token: 0x060009BC RID: 2492 RVA: 0x0001D201 File Offset: 0x0001B401
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AvatarPresetHp.Descriptor;
			}
		}

		// Token: 0x060009BD RID: 2493 RVA: 0x0001D208 File Offset: 0x0001B408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarPresetHp()
		{
		}

		// Token: 0x060009BE RID: 2494 RVA: 0x0001D210 File Offset: 0x0001B410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarPresetHp(AvatarPresetHp other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.nBBKLJBJPNP_ = other.nBBKLJBJPNP_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060009BF RID: 2495 RVA: 0x0001D241 File Offset: 0x0001B441
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarPresetHp Clone()
		{
			return new AvatarPresetHp(this);
		}

		// Token: 0x170002DB RID: 731
		// (get) Token: 0x060009C0 RID: 2496 RVA: 0x0001D249 File Offset: 0x0001B449
		// (set) Token: 0x060009C1 RID: 2497 RVA: 0x0001D251 File Offset: 0x0001B451
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x170002DC RID: 732
		// (get) Token: 0x060009C2 RID: 2498 RVA: 0x0001D25A File Offset: 0x0001B45A
		// (set) Token: 0x060009C3 RID: 2499 RVA: 0x0001D262 File Offset: 0x0001B462
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NBBKLJBJPNP
		{
			get
			{
				return this.nBBKLJBJPNP_;
			}
			set
			{
				this.nBBKLJBJPNP_ = value;
			}
		}

		// Token: 0x060009C4 RID: 2500 RVA: 0x0001D26B File Offset: 0x0001B46B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AvatarPresetHp);
		}

		// Token: 0x060009C5 RID: 2501 RVA: 0x0001D279 File Offset: 0x0001B479
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AvatarPresetHp other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.NBBKLJBJPNP == other.NBBKLJBJPNP && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060009C6 RID: 2502 RVA: 0x0001D2B8 File Offset: 0x0001B4B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.NBBKLJBJPNP != 0U)
			{
				num ^= this.NBBKLJBJPNP.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060009C7 RID: 2503 RVA: 0x0001D310 File Offset: 0x0001B510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060009C8 RID: 2504 RVA: 0x0001D318 File Offset: 0x0001B518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060009C9 RID: 2505 RVA: 0x0001D324 File Offset: 0x0001B524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NBBKLJBJPNP != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.NBBKLJBJPNP);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060009CA RID: 2506 RVA: 0x0001D37C File Offset: 0x0001B57C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.NBBKLJBJPNP != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NBBKLJBJPNP);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060009CB RID: 2507 RVA: 0x0001D3D4 File Offset: 0x0001B5D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AvatarPresetHp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.NBBKLJBJPNP != 0U)
			{
				this.NBBKLJBJPNP = other.NBBKLJBJPNP;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060009CC RID: 2508 RVA: 0x0001D424 File Offset: 0x0001B624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060009CD RID: 2509 RVA: 0x0001D430 File Offset: 0x0001B630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.NBBKLJBJPNP = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040003EB RID: 1003
		private static readonly MessageParser<AvatarPresetHp> _parser = new MessageParser<AvatarPresetHp>(() => new AvatarPresetHp());

		// Token: 0x040003EC RID: 1004
		private UnknownFieldSet _unknownFields;

		// Token: 0x040003ED RID: 1005
		public const int AvatarIdFieldNumber = 9;

		// Token: 0x040003EE RID: 1006
		private uint avatarId_;

		// Token: 0x040003EF RID: 1007
		public const int NBBKLJBJPNPFieldNumber = 1;

		// Token: 0x040003F0 RID: 1008
		private uint nBBKLJBJPNP_;
	}
}
